const mapRoleListForAssign = (roleList,idArr) => {
    return roleList.map(role => ({
        ...role,
        isChecked: idArr.includes(role.id),
        isDisabled: role.status === "禁用"
    }));
};

const mapRoleListForUnassign = (description,id) => {
    return id.map( (item,index) => ({
        id: id[index],
        description: description[index]
    }));
};

export { mapRoleListForAssign, mapRoleListForUnassign}